import Vue from 'vue'
import { Button } from 'vant';
Vue.use(Button);
import { Tabbar, TabbarItem,NavBar  } from 'vant';
Vue.use(Tabbar);
Vue.use(TabbarItem);
import { Swipe, SwipeItem,Grid,GridItem,Image,Search,Toast,Icon,Cell, CellGroup } from 'vant';
import { Sidebar, SidebarItem } from 'vant';
import { List } from 'vant';
import { Image as VanImage } from 'vant';
import { Tab, Tabs } from 'vant';
import { Card } from 'vant';
import { Popup } from 'vant';
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';
import { Stepper } from 'vant';
import { SwipeCell } from 'vant';
import { Checkbox, CheckboxGroup } from 'vant';
import { SubmitBar } from 'vant';
import { ContactCard } from 'vant';
import { AddressList } from 'vant';
import { Field } from 'vant';
import { Tag } from 'vant';
import { Area } from 'vant';
import { AddressEdit } from 'vant';
import { SwitchCell } from 'vant';
Vue.use(SwitchCell);
Vue.use(AddressEdit);
Vue.use(Area);
Vue.use(Tag);
Vue.use(Field);
Vue.use(AddressList);
Vue.use(ContactCard);
Vue.use(SubmitBar);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(SwipeCell);
Vue.use(Stepper);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Popup);
Vue.use(Card);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(VanImage);
Vue.use(List);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Image);
Vue.use(Search);
Vue.use(Toast);
Vue.use(NavBar);
Vue.use(Icon);
Vue.use(Cell);
Vue.use(CellGroup);
// import { ref } from 'vue';
// import { Toast } from 'vant';
// import  { SearchProps, SearchShape, SearchInstance } from 'vant';
// import { ref } from 'vue';
// import  { SearchInstance } from 'vant';
// // const searchRef = ref<SearchInstance>();
// // searchRef.value?.focus();
// export default {
//   setup() {
//     const value = ref('');
//     const onSearch = (val) => Toast(val);
//     const onClickButton = () => Toast(value.value);
//     return {
//       value,
//       onSearch,
//       onClickButton,
//     };
//   },
// };